package com.zqwh.xtool.greendao.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;

import java.util.Date;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class LendOrder {
    @Id
    private String lendOrderId;

    private String orderNo;
    private Long userId;
    private Long devId;
    private Integer totalNum;
    private Integer returnedNum = 0;
    private String lentToolsInfo;
    private String rentStatus;
    private Date finishTime;
    private Boolean valid = true;
    private Boolean updated = false;
    private Date createTime;
    private Date updateTime;
    @Generated(hash = 1328167039)
    public LendOrder(String lendOrderId, String orderNo, Long userId, Long devId,
            Integer totalNum, Integer returnedNum, String lentToolsInfo,
            String rentStatus, Date finishTime, Boolean valid, Boolean updated,
            Date createTime, Date updateTime) {
        this.lendOrderId = lendOrderId;
        this.orderNo = orderNo;
        this.userId = userId;
        this.devId = devId;
        this.totalNum = totalNum;
        this.returnedNum = returnedNum;
        this.lentToolsInfo = lentToolsInfo;
        this.rentStatus = rentStatus;
        this.finishTime = finishTime;
        this.valid = valid;
        this.updated = updated;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
    @Generated(hash = 36355029)
    public LendOrder() {
    }
    public String getLendOrderId() {
        return this.lendOrderId;
    }
    public void setLendOrderId(String lendOrderId) {
        this.lendOrderId = lendOrderId;
    }
    public String getOrderNo() {
        return this.orderNo;
    }
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }
    public Long getUserId() {
        return this.userId;
    }
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Long getDevId() {
        return this.devId;
    }
    public void setDevId(Long devId) {
        this.devId = devId;
    }
    public Integer getTotalNum() {
        return this.totalNum;
    }
    public void setTotalNum(Integer totalNum) {
        this.totalNum = totalNum;
    }
    public Integer getReturnedNum() {
        return this.returnedNum;
    }
    public void setReturnedNum(Integer returnedNum) {
        this.returnedNum = returnedNum;
    }
    public String getLentToolsInfo() {
        return this.lentToolsInfo;
    }
    public void setLentToolsInfo(String lentToolsInfo) {
        this.lentToolsInfo = lentToolsInfo;
    }
    public String getRentStatus() {
        return this.rentStatus;
    }
    public void setRentStatus(String rentStatus) {
        this.rentStatus = rentStatus;
    }
    public Date getFinishTime() {
        return this.finishTime;
    }
    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }
    public Boolean getValid() {
        return this.valid;
    }
    public void setValid(Boolean valid) {
        this.valid = valid;
    }
    public Boolean getUpdated() {
        return this.updated;
    }
    public void setUpdated(Boolean updated) {
        this.updated = updated;
    }
    public Date getCreateTime() {
        return this.createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public Date getUpdateTime() {
        return this.updateTime;
    }
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return  "lendOrderId='" + lendOrderId + '\'' +
                ", orderNo='" + orderNo + '\'' +
                ", userId=" + userId +
                ", devId=" + devId +
                ", totalNum=" + totalNum +
                ", returnedNum=" + returnedNum +
                ", lentToolsInfo='" + lentToolsInfo + '\'' +
                ", rentStatus='" + rentStatus + '\'' +
                ", finishTime=" + finishTime +
                ", valid=" + valid +
                ", updated=" + updated +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime;
    }
}
